<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
request.setCharacterEncoding("UTF-8");
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <base href="<%=basePath%>">
<title>中介公司配置</title>

<jsp:include page="/WEB-INF/jsp/common/common.jsp"></jsp:include>
<link rel="stylesheet" href="<%=path%>/css/zTreeStyle/zTreeStyle.css">
<script type="text/javascript" src="<%=path%>/js/jquery.ztree.core-3.5.js"></script>
<script type="text/javascript" src="<%=path%>/js/jquery.ztree.excheck-3.5.js"></script>
<script src="<%=path%>/js/jquery.divbox.js" type="text/javascript"></script>
<style type="text/css">
		#detail
        {
            position:relative;
            width: 300px;
            font-size: 12px;
            background: #fff;
            border: 1px solid #000;
            z-index: 2;
            display: none;
        } 
        #detail2
        {
            position:relative;
            width: 300px;
            font-size: 12px;
            background: #fff;
            border: 1px solid #000;
            z-index: 2;
            display: none;
        } 
	</style>
<script language="javascript" type="text/javascript">
	history.forward();
	$(document).ready(function() {
		isReadyIframe();
		queryTradNoticeMtInfo(1);
	});
	
	function isReadyIframe(){
		var iframe = $(window.parent.document).find("#iframe").length;
		if(iframe==0){
			window.location.href="<%=basePath%>index.jsp";
		}
	}
	//点击“查询”
	function queryTradNoticeMtInfo(pageIndex){
		var titleParam = $.trim($("#titleParam").val());
		var noticeTimeParam = $.trim($("#noticeTimeParam").val());
		var statusParam = $.trim($("#statusParam").val());
		var noticeTypeParam = $.trim($("#noticeTypeParam").val());
		$.openLoading();
		//按照条件执行查询操作
		$.ajax({
			url : "<%=path%>/tradNoticeMtInfo/queryByCriteria?"+new Date().getTime(),
			type : 'POST',
			async : true,
			dataType:'json',
			data:{
				title:titleParam,
				noticeTimeParam:noticeTimeParam,
				status:statusParam,
				noticeType:noticeTypeParam,
				pageIndex:pageIndex
			},
			success:function(tradNoticeMtInfoPage){
				$.closeLoading();
				if($.validate(tradNoticeMtInfoPage))  return;
				if(null != tradNoticeMtInfoPage){
					var buttonStr = "<a href='' onClick='showDetail(this);return false'>查看</a> <a href='' onClick='saveTradNoticeMtInfo(this);return false'>编辑</a> <a href='' onClick='delTradNoticeMtInfo(this);return false'>删除</a>";
					var fieldNames = "ID@TDH,<a href='javascript:void(this)' style='font-size:12px;display: block;overflow: hidden;white-space: nowrap;text-align:center;-o-text-overflow: ellipsis;text-overflow: ellipsis;width:120px;font-family:宋体;font-weight:normal' onDblClick='copyDetail(this);' onclick='showDatail(this);return false' onmouseover='showDatail(this);return false' onmouseout='closeDatail(this);return false'>TITLE</a>,<a href='javascript:void(this)' style='font-size:12px;display: block;overflow: hidden;white-space: nowrap;text-align:center;-o-text-overflow: ellipsis;text-overflow: ellipsis;width:120px;font-family:宋体;font-weight:normal' onDblClick='copyDetail(this);' onclick='showDatail(this);return false' onmouseover='showDatail(this);return false' onmouseout='closeDatail(this);return false'>CONTENT</a>,START_TIME,END_TIME,PRI@TDH,PRI_DSCP,NOTICE_TYPE@TDH,NOTICE_TYPE_DSCP,STATUS@TDH,STATUS_DSCP";
					
					var tableContent = creatTable1(fieldNames,tradNoticeMtInfoPage,null,buttonStr);
					var tableObj = $("#tradNoticeMtInfoTable");
					tableObj.find("tbody").remove();
					tableObj.append(tableContent);
					
					var strPage = creatChannelPage(pageIndex,6,tradNoticeMtInfoPage.maxPage,"41");
					var pageDIV = $("#tradNoticeMtInfoPageDIV");
					pageDIV[0].innerHTML="";
					pageDIV.append(strPage);
				}
			}
		});
	}
	 function showDatail(obj){
			var result=obj.innerHTML;
			if(result!=""){
				 var length =obj.scrollWidth;
				 if(length>240){
				 	var e = arguments.callee.caller.arguments[0]||window.event;
				 	var y = e.clientY;
				 	var x= document.body.offsetWidth;
				 	if(x>460){
				 		x=x-460;
				 	}
				 	var div3 = document.getElementById("detail");   
				 	document.getElementById("detail").style.display = 'block';
				 	div3.style.left=x;     
		            div3.style.top=e.clientY+1;  
		            div3.style.position="absolute";
				 	$("#input")[0].innerHTML=result;
				 }
			}
		}
	 function copyDetail(obj){
			var result=obj.innerHTML;
			if(result!=""){
				 var length =obj.scrollWidth;
				 if(length>0){
				 	var e = arguments.callee.caller.arguments[0]||window.event;
				 	var y = e.clientY;
				 	var x= document.body.offsetWidth;
				 	if(x>460){
				 		x=x-460;
				 	}
				 	var div3 = document.getElementById("detail2");   
        	 		document.getElementById("detail2").style.display = 'block';
				 	div3.style.left=x;     
		            div3.style.top=e.clientY+1;  
		            div3.style.position="absolute";
				 	$("#output")[0].innerHTML=result;
				 }
			}
		}
	 
	 function closeDatail(){
		 document.getElementById("detail").style.display = 'none';
	 }
	 function closeDiv(){
		 document.getElementById("detail2").style.display = 'none';
 	 }
	//关闭  窗口
	function closeCurrentDIV(obj){
		idstr = '';
		noticeId = "";
		$("#title_div").val("");
		$("#content_div").val("");
		$("#pri_div").val("1");
		$("#status_div").val("0");
		//$('input:radio[name="noticeType_div"]:checked').val();
		$("#startTime_div").val("");
		$("#startTime_hour_div").val("0");
		$("#startTime_minute_div").val('0');
		$("#endTime_div").val('');
		$("#endTime_hour_div").val('0');
		$("#endTime_minute_div").val('0');
		$("#"+obj).CloseDiv();
	}
	
	//“重置”查询条件
	function  resetCriteria(){
		$("#titleParam").val("");
		$("#noticeTimeParam").val("");
		$("#statusParam").val("");
		$("#noticeTypeParam").val("");
	}
	
	//查看详细 div
	function showDetail(obj){
		var detailTr = $(obj).parent('td').parent('tr')[0];
		var titleId = detailTr.childNodes[0].innerHTML;
		$.ajax({
			url : "<%=path%>/tradNoticeMtInfo/queryByTradNoticeId?"+new Date().getTime(),
			type : 'POST',
			async : true,
			data:{id:titleId},
			dataType:'json',
			success:function(data){
				if(data.message==undefined){
					$('#title_detail_div').html(data.title);
					$('#pri_detail_div').html(data.priDscp);
					$('#status_detail_div').html(data.statusDscp);
					$('#notice_type_detail_div').html(data.noticeTypeDscp);
					$('#content_detail_div').html(data.content);
					$('#begin_detail_div').html(data.startTimeStr);
					$('#end_detail_div').html(data.endTimeStr);
					$('#userInfo_detail_div').html(data.operUser+' - '+data.createTimeStr);
				}else{
					$.message("error", "页面加载失败");
				}
			}
		});
		$('#polNoDetailInfo').OpenDiv();
	}

	var noticeId = "";
	var idstr = '';
	function saveTradNoticeMtInfo(obj,handleType){
		if(undefined == handleType){
			var editTr = $(obj).parent('td').parent('tr')[0];
			noticeId = editTr.childNodes[0].innerHTML;
			var title = editTr.childNodes[1].childNodes[0].innerHTML;
			var content = editTr.childNodes[2].childNodes[0].innerHTML;
			var startTime = editTr.childNodes[3].innerHTML;
			var endTime = editTr.childNodes[4].innerHTML;
			var pri = editTr.childNodes[5].innerHTML;
			var noticeType = editTr.childNodes[7].innerHTML;
 			var status = editTr.childNodes[9].innerHTML;
			$("#title_div").val(title);
			$("#content_div").val(content);
			$("#pri_div").val(pri);
			$("#status_div").val(status);
			$("#startTime_div").val(startTime.substr(0,10));
			$("#startTime_hour_div").val(Number(startTime.substr(11,2)));
			$("#startTime_minute_div").val(Number(startTime.substr(14,2)));
			$("#endTime_div").val(endTime.substr(0,10));
		    $("#endTime_hour_div").val(Number(endTime.substr(11,2)));
			$("#endTime_minute_div").val(Number(endTime.substr(14,2)));
			if("0" == noticeType){
				$("input[type=radio][name=noticeType_div][value=0]").attr("checked",true);
				$('#onlyBrachNoticeType').css('display','none');
			}else{
				$("input[type=radio][name=noticeType_div][value=1]").attr("checked",true);
				menuTree();
				$('#onlyBrachNoticeType').css('display','');
			}
		}else{
			$('#pri_div').val('1');
			$("input[type=radio][name=noticeType_div][value=0]").attr("checked",true);
			$('#onlyBrachNoticeType').css('display','none');
		}
		$('#addOrUpdateDiv').OpenDiv();
	}
	
	function noticeTypeChange(obj){
		var value = $('input:radio[name="noticeType_div"]:checked').val();
	 	if("0"==value){
	 		$('#onlyBrachNoticeType').css('display','none');
	 	}else{
	 		$("#onlyBrachNoticeType").css('display','');
	 		menuTree();
	 	}
	}
	<%----------------------------------------------- write begin--------------------------------------------%>
	//获取选中的菜单
	function chooseMenus(e, treeId, treeNode) {
		var sNodes = zTreeObj.getCheckedNodes();
		if(sNodes.length>0){
			for(var i=0;i<sNodes.length;i++){
				idstr+= sNodes[i].id+',';
			}
		}
	}	
	//初始化树形菜单
	function menuTree(){
		var setting = {
				data: {
					simpleData: {
						enable: true
					}
				},
				view: {
					dblClickExpand: true
				},
				callback: {
					onClick: openTree,
					onCheck: businessLogicHandle
				},
				check: {
					enable: true,
					chkStyle: "checkbox",
					chkboxType: { "Y": "", "N": "" }
				},
				treeNode: {
					chkDisabled:true
				}
			};
		$.ajax({
			url: "<%=path%>/tradNoticeMtInfo/getPrivilegeBranchInfoListTree",
			type: "post",
			dataType: "json",
			async:true,
			cache:false,
			success: function(data) {
				if($.validate(data))return;
				//业务处理
					zTreeObj = $.fn.zTree.init($("#treeDemo"), setting, data);
				if(noticeId.length>0){
					$.ajax({
						url: "<%=path%>/tradNoticeMtInfo/queryAllRelationForCurNoticeId",
						type: "post",
						dataType: "json",
						data:{"noticeId":noticeId},
						async:true,
						success: function(data) {
							if($.validate(data))return;
							//业务处理
								if(data!=null){
									$.each(data,function(i,item){
										try{zTreeObj.checkNode(zTreeObj.getNodeByParam("id", item.noticeId, null), true, true);
										}catch(e){}
									})
								}else{
									$.message("error", "菜单加载失败");
								}
						}
					});
				}
			}
		});
	}
	<%-- 业务逻辑特殊处理 begin--%>
	function businessLogicHandle(event, treeId, treeNode){
		try{
			var sNodes  = treeNode.getParentNode();
			while(null!=sNodes){
				sNodes.checked = false;
				zTreeObj.updateNode(sNodes);
				sNodes = sNodes.getParentNode();
			}
			<%--取消子节点--%>
			if(null!=treeNode){
				cancleChildCheck(treeNode);
			}
		}catch(e){}
	}
	function cancleChildCheck(sNodesObj){
		try{
			var sNodesChildObj = sNodesObj.children;
			if(null!=sNodesChildObj){
				for(var i=0;i<sNodesChildObj.length;i++){
					cancleChildCheck(sNodesChildObj[i]);
					sNodesChildObj[i].checked = false;
					zTreeObj.updateNode(sNodesChildObj[i]);
				}
			}
		}catch(e){}
	}
	<%-- 业务逻辑特殊处理 end--%>
	//展开树形菜单
	function openTree(event, treeId, treeNode){
		if(treeNode.isParent){
			var isOpen = treeNode.open;
			zTreeObj.expandNode(treeNode,!isOpen);
		}
	}
	//保存广播消息配置
	//var submitFlag = true;
	function saveMtInfo(){
		var title = $.trim($("#title_div").val());
		var content = $.trim($("#content_div").val());
		var pri = $.trim($("#pri_div").val());
		var status = $.trim($("#status_div").val());
		var noticeType = $('input:radio[name="noticeType_div"]:checked').val();
		var startTime = $.trim($("#startTime_div").val());
		var startHour = $.trim($("#startTime_hour_div").val());
		var startMin = $.trim($("#startTime_minute_div").val());
		var endTime = $.trim($("#endTime_div").val());
		var endHour = $.trim($("#endTime_hour_div").val());
		var endMin = $.trim($("#endTime_minute_div").val());
		
		if(title.length == 0){
			$.message("error", "请输入信息标题");
			return;
		}else if(content.length == 0){
			$.message("error", "请输入信息内容");
			return;
		}else if(title.length == 0){
			$.message("error", "请输入信息内容");
			return;
		}else if(startTime.length == 0){
			$.message("error", "请选择广播开始时间");
			return;
		}else if(endTime.length == 0){
			$.message("error", "请选择广播结束时间");
			return;
		}else if(noticeType.length == 0){
			$.message("error", "请选择通知类型");
			return;
		}
		if("1" == noticeType){
			idstr='';
			chooseMenus();
			if(idstr==''){
				$.message("error","请至少选择一个指定机构");
				return;
			}
		}
		startTime = startTime+' '+startHour+':'+startMin;
		endTime = endTime+' '+endHour+':'+endMin;
		/* if(!submitFlag){
			$.message("error","请求正在处理，请稍后");
			return;
		} */
		//submitFlag = false;
		$.openLoading();
		$.ajax({
			url: "<%=path%>/tradNoticeMtInfo/saveOrUpdateTradNoticeMtInfo",
			type: "post",
			dataType: "json",
			data:{branchIdStr:idstr,id:noticeId,title:title,content:content,pri:pri,status:status,noticeType:noticeType,startTimeStr:startTime,endTimeStr:endTime},
			async:true,
			success: function(data) {
				$.closeLoading();
				if($.validate(data))return;
				//submitFlag = true;
				closeCurrentDIV('addOrUpdateDiv');
				queryTradNoticeMtInfo(1);
			}
		});
	}
	
	function delTradNoticeMtInfo(Obj)
	{
		var delTr = $(Obj).parent('td').parent('tr')[0];
		var idKey = delTr.childNodes[0].innerHTML;
		$.dialog({
			type: "warn",//success,error
			content: "您确定要删除该条记录吗？",
			onOk: function() {
				$.openLoading();
				 $.ajax({
						url : "<%=path%>/tradNoticeMtInfo/delTradNoticeMtInfoById?"+new Date().getTime(),
						type : 'POST',
						async: true,
						dataType:'json',
						data:{
							id:idKey
						},
						success : function(data) {
							$.closeLoading();
							if($.validate(data)) return;
							queryTradNoticeMtInfo(1);
						}
					});	 
			}
		});
	}
	<%----------------------------------------------- write end--------------------------------------------%>
</script>

  </head>
  <body>
 	 <div class="current">
           <table class="current_table_1">
             <tbody>
              	<tr class="f2">
	                <td><img src="./images/current_1.jpg"></td>
	                <td class="current_table_1_td">
	                  <img src="images/current_1.png">&nbsp;您现在的位置：&nbsp;
	                  <span style=" color:#136bab; ">系统管理
	                  	<span style="padding:0 5px; font-weight:bold; line-height:28px;">&gt;</span>广播信息配置
	                  </span>
                  	</td>
                 	<td><img src="./images/current_3.jpg"></td>
              	</tr>
           	 </tbody>
           </table>
     </div>
  	
  	<table border="1" id="channelTable" class="table_02" style="height:150px">
  		<tr height="50px">
  			<td colspan="2" align="center">
				 信息标题：&nbsp;<input id="titleParam" type="text" value="" class="input_text" />&nbsp;&nbsp;
				广播时间：&nbsp;<input id="noticeTimeParam" name="noticeTimeParam" readonly="readonly" onclick="showCalendar('noticeTimeParam','y-mm-dd');"  class="input_time"/>&nbsp;&nbsp;
				发布状态：&nbsp;<select id="statusParam" class="select_1 valid" style="visibility: visible;">
								<option value="">请选择</option>
								<c:forEach var="statusLs" items="${statusLs}">
			            			<option value="${statusLs.code}" title="${statusLs.codeName}">${statusLs.codeName}</option>
			        			</c:forEach>
					 </select>&nbsp;&nbsp;
				通知类型：&nbsp;<select id="noticeTypeParam" class="select_1 valid" style="visibility: visible;">
							    <option value="">请选择</option>
			        			<c:forEach var="noticeTypeLs" items="${noticeTypeLs}">
			            			<option value="${noticeTypeLs.code}" title="${noticeTypeLs.codeName}">${noticeTypeLs.codeName}</option>
			        			</c:forEach>
					 </select>&nbsp;&nbsp;
			    <input type="button" id="searchButton" class="input_button_1"  value="查询" onclick="queryTradNoticeMtInfo(1)"/>&nbsp;&nbsp;
			    <input type="button" id="searchButton" class="input_button_1"  value="重置" onclick="resetCriteria()"/>&nbsp;&nbsp;
			    <input type="button" id="addButton" class="input_button_1"  value="新增" onclick="saveTradNoticeMtInfo(this,'add')"/>
			</td>
  		</tr>
  		<tr>
  			<td valign="top">
	  			<div id="channelInfoDIV" style="width:98%;margin:5px" >
			  		<table class="table_02" id="tradNoticeMtInfoTable">
			  		<thead>
		              <tr>
		                  <th style="width:15%">信息标题</th>
		                  <th style="width:20%">信息内容</th>
		                  <th style="width:15%">广播开始时间</th>
		                  <th style="width:15%">广播停止时间</th>
		                  <th style="width:8%">优先级</th>
		                  <th style="width:8%">通知类型</th>
		                  <th style="width:8%">发布状态</th>
		                  <th style="width:11%">操作</th>
		              </tr>
		              </thead>
		            </table>
	  				 <div id="tradNoticeMtInfoPageDIV"  class="page"></div>
	  			</div>
  			</td>
  		</tr>
  	</table>
  	<div id="detail" style="display:none;">
			<div id="input" style="margin:5px;word-wrap:break-word;"></div>
	</div>
	<div id="detail2" style="display:none;">
		<h4  style='background-color:#A4BDE3;'>
			<table height="20px">
				<tr>
				    <td width="300px";>
				    </td>
				    <td align="right">
				       <img src="./images/closedown.gif"  onclick="closeDiv()"/>
				    </td>
				</tr>							
			</table>
			<input type="hidden" id="appId" value="">
		</h4>	
		<div id="output" style="margin:5px;word-wrap:break-word;"></div>
	</div>
	<div id="polNoDetailInfo" style="display: none;width: 55%;height:65%; padding-bottom: 10px;margin-top: -50px;overflow-y:auto;">
  		<div class="table_title_div">
				<table class="table_title" style='width:100%;height: 20px;'>
					<tr>
						<td width="10%"></td>
						<td width="80%" id="interfaceName"></td>
						<td width="10%" align="right"><img src="<%=path %>/images/closedown.gif" alt="关闭"  onclick="closeCurrentDIV('polNoDetailInfo')"/></td>
					</tr>
				</table>
		</div>
		<table class="table_02" align="center" style="height: 65%;width: 95%" >
			<tr>
				<td style="text-align:right;" width="20%">信息标题：</td>
				<td id ="title_detail_div" colspan="3" style="text-align:left;padding-left:6px; word-break:break-all;" width="80%"></td>
			</tr>
			<tr>
				<td style="text-align:right;" width="20%">优先级：</td>
				<td id ="pri_detail_div" style="text-align:left;padding-left:6px;" width="30%"></td>
				<td style="text-align:right;" width="20%">通知类型：</td>
				<td id ="notice_type_detail_div" style="text-align:left;padding-left:6px;" width="30%"></td>
			</tr>
			<tr>
				<td style="text-align:right;" width="20%">发布状态：</td>
				<td id ="status_detail_div" style="text-align:left;padding-left:6px;" width="30%"></td>
				<td style="text-align:right;" width="20%">创建人-创建时间：</td>
				<td id ="userInfo_detail_div" style="text-align:left;padding-left:6px;" width="30%"></td>
			</tr>
			<tr>
				<td style="text-align:right;" width="20%">广播开始时间：</td>
				<td id ="begin_detail_div" style="text-align:left;padding-left:6px;" width="30%"></td>
				<td style="text-align:right;" width="20%">广播结束时间：</td>
				<td id ="end_detail_div" style="text-align:left;padding-left:6px;" width="30%"></td>
			</tr>
			<tr>
				<td style="text-align:right;" width="20%">信息内容：</td>
				<td id ="content_detail_div" width="80%" colspan="3" style="text-align:left;padding-left:6px; word-break:break-all;"></td>
			</tr>
		</table>
	</div>
  	<%--新增或编辑弹出层 --%>
  	<div id="addOrUpdateDiv" style="display: none;width: 60%;height:66%; padding-bottom: 10px;margin-top: -50px; overflow-y: auto;">
  		<div class="table_title_div">
				<table class="table_title" style='width:100%;height: 20px;'>
					<tr>
						<td width="10%"></td>
						<td width="80%" id="interfaceName"></td>
						<td width="10%" align="right"><img src="<%=path %>/images/closedown.gif" alt="关闭"  onclick="closeCurrentDIV('addOrUpdateDiv')"/></td>
					</tr>
				</table>
		</div>
		
		<table class="table_02" align="center" style="height: 65%;width: 95%" >
			<tr>
				<td style="text-align:right;border-right:0px;" width="30%">信息标题：</td>
				<td style="text-align:left;" width="70%">&nbsp;
					<input id="title_div" name="title_div" maxlength="100" class="input_text"/><span id="agencyCode_div_span" class="red">*</span>
				</td>
			</tr>
			<tr>
				<td style="text-align:right;border-right:0px;" width="30%">信息内容：</td>
				<td style="text-align:left" width="70%">&nbsp;
					<textarea name="content_div" id="content_div" cols="" rows="5" class="textarea_1" style="resize:none; width: 320px;height:80px;"></textarea><span class="red">*</span>
				</td>
			</tr>
			<tr>
				<td style="text-align:right;border-right:0px;" width="30%">优先级：</td>
				<td style="text-align:left" width="70%">&nbsp;
					<select id="pri_div" class="select_1 valid" style="visibility: visible;">
								<c:forEach var="priLs" items="${priLs}">
			            			<option value="${priLs.code}" title="${priLs.codeName}">${priLs.codeName}</option>
			        			</c:forEach>
					 </select>
				</td>
			</tr>
			<tr>
				<td style="text-align:right;border-right:0px;" width="30%">发布状态：</td>
				<td style="text-align:left" width="70%">&nbsp;
					<select id="status_div" class="select_1 valid" style="visibility: visible;">
								<c:forEach var="statusLsLs" items="${statusLs}">
			            			<option value="${statusLsLs.code}" title="${statusLsLs.codeName}">${statusLsLs.codeName}</option>
			        			</c:forEach>
					 </select>
				</td>
			</tr>
			<tr>
				<td style="text-align:right;border-right:0px;" width="30%">广播开始时间：</td>
				<td style="text-align:left" width="70%">&nbsp;
					开始时间&nbsp;<input id="startTime_div" onkeydown="false" readonly="readonly" onclick="showCalendar('startTime_div','y-mm-dd');$('.calendars').css('z-index',20000);" class="input_time" type="text" style="width:120px;"/>
					&nbsp;<select id="startTime_hour_div" class="select_1 valid" style="visibility: visible;width: 50px;">
								<c:forEach var="i" begin="00" end="23">
			            			<option value="${i}">${i}</option>
			        			</c:forEach>
					 </select>时&nbsp;<select id="startTime_minute_div" class="select_1 valid" style="visibility: visible;width: 50px;">
								<c:forEach var="j" begin="00" end="59">
			            			<option value="${j}">${j}</option>
			        			</c:forEach>
					 </select>分&nbsp;<span class="red">*</span>
				</td>
			</tr>
			<tr>
				<td style="text-align:right;border-right:0px;" width="30%">广播结束时间：</td>
				<td style="text-align:left" width="70%">&nbsp;
					结束时间&nbsp;<input id="endTime_div" onkeydown="false" readonly="readonly" onclick="showCalendar('endTime_div','y-mm-dd');$('.calendars').css('z-index',20000);" class="input_time" type="text" style="width:120px;"/>
					&nbsp;<select id="endTime_hour_div" class="select_1 valid" style="visibility: visible;width: 50px;">
								<c:forEach var="k" begin="00" end="23">
			            			<option value="${k}">${k}</option>
			        			</c:forEach>
					 </select>时&nbsp;<select id="endTime_minute_div" class="select_1 valid" style="visibility: visible;width: 50px;">
								<c:forEach var="l" begin="00" end="59">
			            			<option value="${l}">${l}</option>
			        			</c:forEach>
					 </select>分&nbsp;<span class="red">*</span>
				</td>
			</tr>
			<tr>
				<td style="text-align:right;border-right:0px;" width="30%">通知类型：</td>
				<td style="text-align:left" width="70%">&nbsp;
					<input type="radio" id="noticeType_div" name = "noticeType_div" value="0" checked="checked" onclick="noticeTypeChange(this)"/>全局
					<input type="radio" id="noticeType_div" name = "noticeType_div" value="1" onclick="noticeTypeChange(this)"/>指定机构
				</td>
			</tr>
			<tr id="onlyBrachNoticeType">
			<%-- 父级菜单 树形div --%>
				<td style="text-align:right;border-right:0px;" width="30%">请选择指定机构：</td>
				<td style="text-align:left" width="70%">&nbsp;
				<ul id="treeDemo" class="ztree"></ul>
				</td>
			</tr>
		</table>
		
		<div align="center">
		   <input type="button" value="保存" onclick="saveMtInfo()" class="input_button_3"/>&nbsp;&nbsp;&nbsp;
	       <input type="button" value="取消" onclick="closeCurrentDIV('addOrUpdateDiv')" class="input_button_3"/>
		</div>
	</div>
  </body>
</html>
